/**
 * Copy right 2013 by Phan Hoàn Vũ
 * Email hoanvuphan@gmail.com
 */
package vn.universex;

/**
 * @author Phan Hoan Vu
 * 
 */
public class DefaultProperties {

    private DefaultProperties parent;

    private String propertyName;

    /**
     * Constructor.
     * 
     * @param parent
     * @param propertyName
     */
    public DefaultProperties(DefaultProperties parent, String propertyName) {
        this.parent = parent;
        this.propertyName = propertyName;
    }

    public String build() {
        return build(new StringBuilder());
    }

    public String build(StringBuilder builder) {
        builder.append(this.parent.build(builder)).append(this.propertyName);
        return builder.toString();
    }
}
